<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>即客行</title>
</head>
<body>

  <script type="text/javascript">

  //方法一

  var str = location.href;
  console.log(str);
  var arr = str.split("/");
  console.log(arr);
  console.log(arr.pop());
  console.log(arr);
  // console.log(arr.length);
  var fileName = arr.pop();
  var env = arr.pop();
  console.log(env);
  console.log(fileName);

  var href = "itms-services://?action=download-manifest&url=https://ios-store.wm-getngo.com/" +env+"/"+fileName+"/manifest.plist";
  console.log(href);
  </script>


<h1 style="font-size:40pt">iOS应用安装<h1/>
<h1 style="font-size:40pt">
<a title="iPhone" href=href>点击安装</a>
<h1/>
<h1/>
</body>
</html>
